<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	    xmlns:f="http://java.sun.com/jsf/core"
	    xmlns:h="http://java.sun.com/jsf/html"
	    xmlns:ui="http://java.sun.com/jsf/facelets"
	    xmlns:p="http://primefaces.org/ui"
	    template="/template/templateLogin.xhtml">
    
   	<ui:param name="pageTitle" value="Cadastro de Edital" />
   	
    <ui:define name="body"> 
    	<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>  
              
		<p:dialog modal="true" widgetVar="statusDialog" header="Carregando..."   
		        draggable="false" closable="false">  
		    <p:graphicImage value="resources/images/ajaxloadingbar.gif" />  
		</p:dialog>  
    	<h:form id="formLogin">
      		<p:growl id="growl"/>  
  
		    <p:dialog id="dialog" header="Login" widgetVar="dlg" resizable="false" closable="false" visible="true">  
		  
		        <h:panelGrid columns="2" cellpadding="5">  
		            <h:outputLabel for="usuario" value="Usu&aacute;rio:" />  
		            <p:inputText value="#{usuarioController.usuarioLogin.login}"   
		                    id="usuario" required="true" label="usuario"
		                    requiredMessage="Por favor, caro amigo. Digite o login!" />  
		              
		            <h:outputLabel for="senha" value="Senha:" />  
		            <p:inputText value="#{usuarioController.usuarioLogin.senha}"   
		                    id="senha" required="true" label="senha"
		                    type="password"
		                    requiredMessage="Por favor, caro amigo. Digite a senha!" />  
		              
		            <f:facet name="footer">  
		                <p:commandButton id="loginButton" value="Entrar" update="growl"   
		                    action="#{usuarioController.login}"   
		                    ajax="false"/>  
		            </f:facet>  
		        </h:panelGrid>  
		          
		    </p:dialog> 
		</h:form>
		
			
    </ui:define>
</ui:composition>